home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / lib / partman / init.d / 03kernelmodules_reiserfs < prev    next >
Text File  |  2008-10-29  |  340b  |  21 lines

  1. #!/bin/sh
  2.  
  3. mkdir -p /var/lib/partman
  4.  
  5. cat /proc/modules |
  6. while read module_name x; do
  7.     if [ "$module_name" = reiserfs ]; then
  8.         >/var/lib/partman/reiserfs
  9.         exit 0
  10.     fi
  11. done
  12.  
  13. if modprobe reiserfs >/dev/null 2>/dev/null; then
  14.     >/var/lib/partman/reiserfs
  15.     exit 0
  16. fi
  17.  
  18. if grep -q reiserfs /proc/filesystems; then
  19.     >/var/lib/partman/reiserfs
  20. fi
  21.